<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateBankLibsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('bank_libs', function (Blueprint $table) {
            $table->id();
            $table->integer('store_id')->default(0)->comment('店铺id');
            $table->integer('user_id')->unsigned()->comment('用户id');
            $table->string('bank_name')->default('')->comment('提现银行');
            $table->string('bank_code')->default('')->comment('银行卡号');
            $table->string('deposit')->default('')->comment('开户行');
            $table->string('accepter_name')->default('')->comment('提现人名字');
            $table->string('accepter_phone')->default('')->comment('提现人手机');
            $table->timestamps();
        });

        DB::statement("ALTER TABLE `bank_libs` comment '银行卡'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('bank_libs');
    }
}
